Skip to content

quickshell: backport socket error-handler null guard - #2868

Open
aholbreich wants to merge 1 commit into
omacom:masterfrom
aholbreich:fix/quickshell-socket-error-null
Open

aholbreich wants to merge 1 commit into
omacom:masterfrom
aholbreich:fix/quickshell-socket-error-null

Conversation

@aholbreich

Copy link
Copy Markdown

What

Backport quickshell-mirror/quickshell#1345 (upstream commit 0c3d4d50dd8849f8ccef2170bf81758ab0807b0e) as a patch on the pinned 2b4501a source, and bump pkgrel 11 → 12.

A plugin Socket { onError: connected = false } disconnects synchronously while the error is being delivered, which deletes the socket and clears the pointer. The rest of the error cleanup then calls deleteLater() on null and the whole shell segfaults. The upstream patch guards that cleanup. It's carried verbatim with its authorship, applies with zero fuzz, and the recipe notes to drop it once the pinned source includes the fix. #1345 is still open upstream.

Reports: omacom/omarchy#15971, omacom/omarchy#16531, omacom/omarchy#17093, omacom/omarchy#17110 (upstream issue quickshell-mirror/quickshell#1342).

Validation

  • bin/build --package quickshell (x86_64, rootless Podman): builds.
  • Reproducer outside the repo: compiled the pinned upstream client Socket/DataStream code with a QML Socket { onError: connected = false } and aborted a real local-socket peer. Unpatched: SIGSEGV. Patched: 10/10 pass, plus 10/10 each for missing-server and no-handler controls.
  • tests/pinned-sources.sh, tests/package-metadata.sh, bash -n pkgbuilds/quickshell/PKGBUILD: pass.

Not tested: aarch64 build, whole shell with a real plugin on an installed system.

Carry quickshell-mirror/quickshell#1345 (upstream commit 0c3d4d50) as a
patch on the pinned 2b4501a source. A plugin Socket whose onError handler
sets connected = false frees the socket synchronously; the remaining error
cleanup then calls deleteLater() on null and the whole shell segfaults
(omacom/omarchy#15971, #16531, #17093, #17110).

Remove the patch once the pinned source includes the fix.
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Backports the socket error-handler null guard and bumps pkgrel from 11 to 12.

  • Quickshell skips socket cleanup after an error handler has removed the socket.

Reviews (1) · Last reviewed commit: "quickshell: backport socket error-handle..." · Reviewed by Greptile

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant